import { IsBoolean, IsNotEmpty, IsNumber } from 'class-validator';

export class CreatePermissionControlDto {

  @IsNumber()
  @IsNotEmpty()
  permissionId: number;

  @IsNumber()
  @IsNotEmpty()
  roleId: number;

  @IsBoolean()
  @IsNotEmpty()
  permissionControl?: 'yes' | 'no' = 'no';

}
